<include file='Public:header_agent'/>  
  <!-- Start: Content -->
  <section id="content">
    <div id="topbar" class="affix">
      <ol class="breadcrumb">
       <li style="font-size:1.3em"><a href="<?php echo '__ROOT__/index' ?>"><span>返回首页</span></a></li>
        <li style="font-size:1.3em"><a href="javascript:void(0)" onclick="history.go(-1)" class="back"><span>返回上一层</span></a></li>
        <li style="font-size:1.3em"><a href="<?php echo '__ROOT__/recordpay' ?>" class="back"><span>代理转账记录</span></a></li>
      </ol>
    </div>
    <div class="container">

	 <div class="row">
        <div class="col-md-12">
			<div class="panel">
				<div>
					<form action="" method="get" id="form">
						<div class="panel-heading" style="float:left">
						 转账ID：<input style="outline:none;height:30px;border-radius:8px;" id="username" name="userid" 
             value="<?php echo empty($_GET['userid'])?'':$_GET['userid'];?>" type="" class="txt">
						</div>
						 <div class="panel-heading" style="float:left">
						 接收人ID：<input style="outline:none;height:30px;border-radius:8px;" id="username" name="name" 
             value="<?php echo empty($_GET['name'])?'':$_GET['name'];?>" type="" class="txt">
						</div>
						<div class="panel-heading" style="float:left;width:58%;">
						 转账时间：
						 <input type="text" class="Wdate" name="sdate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="height:30px;font-size:1px;border-radius:8px;" value="<?php echo empty($_GET['sdate'])?'':$_GET['sdate'];?>"/>
						--
						<input type="text" class="Wdate" name="edate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="height:30px;font-size:1px;border-radius:8px;" value="<?php echo empty($_GET['edate'])?'':$_GET['edate'];?>"/>
						<input style="float:right;width:20%;height:25px;border-radius:9px;background:##bbb4bb;color:#000;line-height:2px;outline:none" type="submit" name="soso" value="搜索" class="btn">
						</div>
					</form>
				</div>
              
                <div class="panel-body">

				
                  <table class="table table-striped table-bordered table-hover dataTable">
                      <tr class="active">
                        <th>转账人ID</th>
                        <th>转账人属性</th>
						<th>转账前房卡数</th>
                        <th>转账后房卡数 </th>
						<th>接收人ID </th>
						<th>接收人属性</th>
                        <th>接收前房卡数 </th>
                        <th>接收后房卡数 </th>
                        <th>转账时间</th>
                        <!-- <th width="200">操作</th> -->
                      </tr>
					    <?php foreach ($presnted as $v) { ?>
                    	<tr class="success">
						<!-- 其中转账任属性 以及转账前钻石 都为需要加的数据  现在外网数据库加的  ，以后更改 -->
                         <td>
                         <?php  if($v['benefactor']==0){
                            echo '微信支付';}
                         if($v['benefactor']!=0){
                            echo $v['benefactor'];}
                         ?>
                         </td>
                        <td>
                        <?php  if($v['sort']==3){
                        echo '微信扫码';}
                        if($v['sort']==0){
                        echo '代理';
                        }
                        ?>
                        </td>
                        <td><?php echo $v['gems_front']?></td>
                        <td><?php echo $v['gems_queen'] ?></td>
                        <td><?php echo $v['recipient']?></td>
                        <td><?php echo '代理';?></td>
                        <td><?php echo $v['accept_frone'] ?></td>
                        <td><?php echo $v['accept_queen'] ?></td>
                        <td><?php echo $v['regtime'] ?></td>
</tr>
						<?php }?>
                  </table>
                  <!-- <div class="pull-right">
                    <ul class="pagination" id="paginator-example">
                      <?php echo $page?>
                    </ul>
                  </div>   -->
                </div>
              </div>
          </div>
        </div>
    </div>
    <div style="position:fixed;top:90%;right:30px;">
      <ul class="pagination" id="paginator-example" style="width: 1603px;border: solid 1px #dadada;">
                      <?php echo $page?>
      </ul>
    </div>
  </section>
  <script type="text/javascripe">
    $(function(){
          // 分页（修改链接方法）
        $('#paginator-example a').click(function(){ 
                    
            var tmpHref = $(this).attr('href');
            tmpHref = tmpHref.replace(/\/selCon\//,"");
            $("#form").attr("action", tmpHref);
            $("#form").submit();
                    
            return false; 
        });
    }

	
	
	$(function(){
        //查询
        $("#selecting").click(function(){
            $("#form").attr("action", "__URL__/listDept/p/1");
            $("#form").submit();
        });
    }

  </script>
  <!-- End: Content --> 
<include file='Public:footer'/>                                                                                                                                                                                       